<?php
class IndexAction extends Action{
	public function _initialize(){//初始化
		R("Home.Public","top");
		R("Home.Public","bottom");
	}
	public function index(){
	   import("ORG.Com.DiyCache");
	   $mycache=new DiyCache;
	   if(!$mycache->is_cached()){//处理自定义缓存
		 if(C("diy_cache"))$mycache->create_cache($this->fetch());//创建缓存
		 $this->display();
	   }
	   
	}
}
?>